package com.zhida.chatservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.zhida.common.entity.Result;
import com.zhida.common.entity.WsGroup;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;
import java.util.List;

/**
 * Create by zhh 2024/7/16 7:48
 */
@Service
public interface WsService extends IService<WsGroup> {


    Result<?> userOnline(String username);

    Result<?> createGroup(WsGroup wsGroup, String username);

    Result<?> joinGroup(Integer groupId, String username);

    Result<?> getGroupsInfo();

    Result<?> updateGroupInfo(HashMap<String,String> data);

    Result<?> getGroupMembers(String group_id);

    Result<?> sendImages(List<MultipartFile> files, String jsonForm);
}
